﻿namespace EF.Repo.Enums;

/// <summary>
/// 平台自定义响应码
/// </summary>
public enum ApiCode
{
    //======================通用状态码=====================
    /// <summary>
    /// 未知/错误/未完成
    /// </summary>
    UnKnown = 0,
    /// <summary>
    /// 成功/通过/完成
    /// </summary>
    OK = 1,

    /// <summary>
    /// 服务器错误
    /// </summary>
    ServerError = 500,

    //================分段业务状态码(10000: 用户)===============
    /// <summary>
    /// 用户不可以
    /// </summary>
    UserDisabled = 10000,

    //================分段业务状态码(11000: 文件)===============
    /// <summary>
    /// 文件路径错误
    /// </summary>
    PathError = 11000,
    /// <summary>
    /// 不可写入(没有权限)
    /// </summary>
    Unwritable = 11001,
}
